package com.sxjh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxjh.entity.Task;
import com.sxjh.entity.param.ReportsDetailParam;
import com.sxjh.entity.param.ReportsListParam;
import com.sxjh.entity.result.PlanedTaskListResult;
import com.sxjh.entity.result.TaskListResult;
import com.sxjh.entity.result.TransSettingResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 任务  Mapper 接口
 * </p>
 *
 * @author zixin
 * @since 2021-06-06
 */
public interface TaskMapper extends BaseMapper<Task> {

    IPage<TaskListResult> list(IPage iPage, @Param("param") TaskListResult param);

    TaskListResult list2(Integer vehId);

    List<PlanedTaskListResult> taskList(@Param("icNumber") String icNumber, @Param("status") Integer status);

    IPage<ReportsListParam> reportList(IPage iPage, @Param("param") ReportsListParam param);

    IPage<ReportsDetailParam> reportDetail(IPage iPage, @Param("param") ReportsDetailParam param);

    IPage<ReportsDetailParam> taskDetailList(IPage iPage, @Param("param") ReportsDetailParam param);

    void updateTaskById(@Param("param") Task task);

    TransSettingResult getTransSetting();
}
